package com.liuhengjia.springbootmybatis.service.impl;

import com.liuhengjia.springbootmybatis.mapper.UserMapper;
import com.liuhengjia.springbootmybatis.pojo.User;
import com.liuhengjia.springbootmybatis.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User selectById(Integer id) {
        return userMapper.selectById(id);
    }
}
